home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!zodiac!szh
- From: szh@zcon.com (Syed Zaeem Hosain)
- Subject: Re: Unbuffered character input...
- Message-ID: <1996Feb2.022718.26719@zcon.com>
- Sender: szh@zcon.com (Syed Zaeem Hosain)
- Nntp-Posting-Host: zodiac
- Reply-To: szh@zcon.com
- Organization: Z Consulting Group
- References: <DM2D7s.3EI@emr1.emr.ca>
- Date: Fri, 2 Feb 1996 02:27:18 GMT
-
- In article <DM2D7s.3EI@emr1.emr.ca>, jagrant@emr1.emr.ca (John Grant) writes:
- >In article <4em2oaINN54i@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- >>In article <4elf0t$5vd@ixnews2.ix.netcom.com>,
- >>Kevin Landry <kevgar@ix.netcom.com> wrote:
- >>>Caleb Haley <chaley@tahiti.cs.unm.edu> wrote:
- >>>
- >>>>Greetings!
- >>>
- >>>>Just curious--is there a way to do unbuffered character input in c?
- >>>>i.e. getting just one character without waiting for a carriage return
- >>>>(enter)...
- >>>
- >>>I believe there are two commands in C that do this. getch() is
- >>>unbuffered input without echo and getche() has the echo. Hope this
- >>>helps.
- >>
- >>Sigh. C doesn't have commands. C has statements. The getch() and getche() that
- >>you describe are library functions---system-specific library functions,
- >>moreover. They are not part of the standard library.
- >>
- >>To those of you who have been regulars of this group for a while, please bear
- >>with me: I will surely kick the habit of responding to clueless DOS
- >>programmers before long. In the past week, I've seen the stupid "how do I get
- >>single characters from the keyboard" asked about thirty times! The replies
- >>are often worse than the questions.
- >
- > Would you be as insulting to 'clueless UNIX programmers' who
- > asked the same question or provided a similar answer?
-
- Yes, I certainly would respond in a similar way - usually to direct
- people to the FAQ.
-
- And I would positively be a lot more polite and much less sarcastic
- that your posts are. And that is not an insult ... merely a fact that
- I have observed after reading most of your posts - which seem to do
- nothing except flame at others posting here.
-
- Z
-
-
- --
- -------------------------------------------------------------------------
- | Syed Zaeem Hosain P. O. Box 610097 (408) 441-7021 |
- | Z Consulting Group San Jose, CA 95161 szh@zcon.com |
- -------------------------------------------------------------------------
-